package org.jsola.hr.dao;

import org.apache.ibatis.annotations.Param;
import org.jsola.core.Page;
import org.jsola.hr.entity.CrmMemberDO;
import org.jsola.hr.vo.CrmMemberVO;
import org.jsola.hr.vo.HrUserVO;
import org.jsola.orm.mapper.IJsolaMapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 成员表
 *
 * @author zhr
 */
@Repository("hrCrmMemberDAO")
public interface ICrmMemberDAO extends IJsolaMapper<CrmMemberDO> {

    /**
     * 获取没有成员权限的用户
     * @param siteId 站点ID
     * @return page
     */
    List<CrmMemberVO> getAllUser(@Param("siteId") String siteId);

    /**
     * 获取是客户主管用户
     * @param siteId 站点ID
     * @return page
     */
    List<CrmMemberVO> getPartUser(@Param("siteId")String siteId);
}

